package cn.itcast.bos.service.base;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;


/**
 * Created by Administrator on 2017/7/14/014.
 */
public interface BaseService<T> {

    Page<T> findAll(Specification<T> spec, Pageable pageable);
    void save(T entity);


}
